import Vue from 'vue'
export function fetchLogin(opts) {
    return Vue.axios.post('/confirmUser.do', {
        username: opts.username,
        userpwd: opts.userpwd,
        origintypeCode: opts.code,
        code: opts.viaCode,
        stamp: opts.nameCode
    })
}
export function fetchLoginOut(opts) {
    return Vue.axios.post('/loginout.do')
}

export function fetchGetCheckCode(opts) {
    return Vue.axios.post('/validateCode.do', {
        stamp: opts.stamp
    })
}

// *修改密码
export function fetchModifyPassword(opts){
  return Vue.axios.post('/supplierSub/modiSubPassword.do', opts)
}
